{% extends 'cdserver/base.html' %}

{% block title %}CD server - log{% endblock %}


{% block content%}
    <h3>系统日志</h3>

    <div class="table">
    <table class="table is-fullwidth is-bordered is-striped is-hoverable has-text-centered">
        <thead>
        <tr>
            <th>创建时间</th>
            <th>日志类型</th>
            <th>日志内容</th>
        </tr>
        </thead>
        <tbody>
        {% for obj in object_list %}
            <tr>
                <th> {{ obj.created_time }} </th>
                <td> {{ obj.log_type }} </td>
                <td> {{ obj.content }} </td>
                <td> <span class="tag is-info is-light">{{ obj.get_status_display}}</span> </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
{% endblock %}